package com.study.spring.aop;

import com.study.spring.aop.model.User;

public class UserDao {

    public int addUser(User user) {
        System.out.println("数据库保存用户" + user);
        // do save user
        int result = 1;
        if (System.currentTimeMillis() % 2 == 0) {
            throw new RuntimeException("......");
        }
        return result;
    }
}
